


        for(var s = 0;s < $('main .headSwiper .swiper-slide').length;s++){
            $('main .headSwiper .swiper-slide')[s].ind = s;
            $('main .headSwiper .swiper-slide:eq(' + s + ')').find('.page .current')[0].innerText = '0' + (s + 1);
            $('main .headSwiper .swiper-slide:eq(' + s + ')').find('.page .length')[0].innerText = '0' + $('main .headSwiper .swiper-slide').length;
        }
        var headSwiper = new Swiper('.swiper-container',{
            loop:true,
            touchRatio:0.4,
            autoplay:{
                disableOnInteraction: false,
            },
            on: {
                touchEnd: function(event){
                    if($('main .headSwiper .swiper-slide-active')[0].className.indexOf('restart') >= 0){
                        $('main .headSwiper .swiper-slide-active').removeClass('restart');
                    }else{
                        $('main .headSwiper .swiper-slide-active').addClass('restart');
                    }
                },
            },
        })
        function exclusiveActions(){
            var scrollTop = document.documentElement.scrollTop || document.body.scrollTop;

            for(var tt = 0;tt < $('main .headSwiper .swiper-slide .contn .title h1').length;tt++){
                $('main .headSwiper .swiper-slide .contn .title h1')[tt].style.transform = 'translateY(-' + (20 * scrollTop / 100) + 'px)';
                $('main .headSwiper .swiper-slide .contn .link a')[tt].style.transform = 'translateY(-' + (10 * scrollTop / 100) + 'px)';
                $('main .headSwiper .swiper-slide .contn .picBox img')[tt].style.transform = 'translateY(' + (-20 + 10 * scrollTop / 100) + 'px)';
            }
            transformTwice($('main .intro .txtBox span:first-child'),23,'translateY')
            //.intro .txtBox
            transformTwice($('main .intro .txtBox .tp'),220,'translateY');
            transformTwice($('main .intro .txtBox .btm'),440,'translateY');
            //.intro .tips
            transformTwice($('main .intro .tips h1 p:eq(0)'),28,'translateX');
            transformTwice($('main .intro .tips h1 p:eq(1)'),-54,'translateX');
            transformTwice($('main .intro .tips h1 p:eq(2)'),54,'translateX');
            transformTwice($('main .intro .tips h1 p:eq(3)'),-28,'translateX');
            //main .creative
            transformTwice($('main .creative .row:nth-child(1) .box.txt p'),46,'translateY');
            transformTwice($('main .creative .row:nth-child(1) .box.pic p img'),-48,'translateY')
            transformTwice($('main .creative .row:nth-child(1) .box .horLine'),290,'translateX');
            transformTwice($('main .creative .row:nth-child(2) .minusR img'),-86,'translateY');
            transformTwice($('main .creative .row:nth-child(3) .box p:eq(0)'),96,'translateY');
            transformTwice($('main .creative .row:nth-child(3) .box p:eq(1)'),48,'translateY');
            //main .idea
            transformTwice($('main .idea .picBox img'),-98,'translateY');
            transformTwice($('main .idea .txtBox .horLine'),280,'translateX');
            transformTwice($('main .idea .txtBox .verLine'),140,'translateY');
            transformTwice($('main .idea .txtBox .content h1 p:eq(0)'),25,'translateY');
            transformTwice($('main .idea .txtBox .content h1 p:eq(1)'),38,'translateY');
            //main .flexible
            transformTwice($('main .flexible .pic .picBox img'),-48,'translateY');
            transformTwice($('main .flexible .txt p'),47,'translateX');
            transformTwice($('main .flexible .t p'),23,'translateY');
            transformTwice($('main .flexible .verLine'),215,'translateY');
            transformTwice($('main .flexible .horLine'),210,'translateY');
            //main .custmz
            transformTwice($('main .custmz .contn a'),112,'translateY');
            transformTwice($('main .custmz .contn .txt p:eq(0)'),47,'translateX');
            transformTwice($('main .custmz .contn .txt p:eq(1)'),-47,'translateX');
        }
        

        $(document).ready(function(){
            $('main .headSwiper .btns p').click(function(){
                if($(this)[0].className.indexOf('prev') >= 0){
                    headSwiper.slidePrev();
                }else{
                    headSwiper.slideNext();
                }
            })

            watchWindowWidth = setInterval(function(){
                if(window.innerWidth != consultWidth){
                    scrollProcess();
                    //swiper h1
                    consultWidth = window.innerWidth;
                }
            },10);

            /*for(var rl = 0;rl < $('main .intro .tips h2 p').length;rl++){
                var txt = $('main .intro .tips h2 p')[rl].innerText;
                $('main .intro .tips h2 p')[rl].innerText = '';
                for(var n = 0;n < txt.length;n++){
                    if(n == length - 1){
                        $('main .intro .tips h2 p')[rl].innerHTML += txt[n];
                        break;
                    }
                    $('main .intro .tips h2 p')[rl].innerHTML += (txt[n] + '<br />');
                }
            }*/
        })